@import "@/styles/variables";

.root {
  display: flex;
  flex-direction: column;

  position: fixed;
  top: 0;

  width: $sidebar-width;
  height: 100vh;
  padding: 1.5rem 0;

  background: $color-bg-secondary;
  box-shadow: 0 20px 80px -10px rgba(29, 33, 94, 0.17);
}

.links {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  gap: 0.5rem;
}

.link {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;

  font-size: 1rem;
  font-weight: 550;
  padding: 0.5rem;
  color: $color-white;
  border-radius: 0.5rem;

  svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  &:visited {
    color: $color-white;
  }

  &:hover {
    background: rgba($color-white, 0.08);
    color: #6366F1;
  }

  &.active {
    color: #6366F1;
  }
}

.fillIcon {
  svg {
    fill: $color-white;
  }

  &:hover {
    svg {
      fill: $color-contrast;
    }
  }

  &.active {
    svg {
      fill: $color-contrast;
    }
  }
}

.logo_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;

  padding-bottom: 1.5rem;
  border-bottom: 1px solid $color-divider;
}

.logo {
  width: 5rem;
  height: 5rem;

  img {
    width: 100%;
    height: 100%;
  }
}

.space {
  flex: 1;
}

.logout {
  padding: 0 1rem;
}

button.link {
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;

  svg path {
    fill: none;
  }
}
